<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

class VideoFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [

            'title' => $this->faker->title,
            'type'=>rand(0,1),//生成随机整数
            'expert_id'=>rand(1,5),
            'description'=>$this->faker->paragraphs('3','true'),
            'start_at'=>$this->faker->dateTime('now','PRC'),
            'end_at'=>$this->faker->dateTimeInInterval('now','+3 hours','PRC')

        ];
    }



}
